import {
	createStore
} from 'vuex'
if (!localStorage.city) {
	var defaultCity = '请选择城市'
} else {
	var defaultCity = localStorage.city
}
export default createStore({
	state: {
		city: defaultCity
	},
	mutations: {
		changeCity(state, cName) {
			state.city = cName;
			localStorage.city = cName;
		}
	},
	actions: {},
	modules: {}
})
